﻿@model WebVideo.Areas.Admin.Models.VideoModel     
@{
    ViewBag.Title = "View";
    Layout = "~/Areas/Admin/Views/Shared/_Layout.cshtml";
}
<script src="../../../../Content/cssAdmin/js/plugins/jquery-1.7.min.js"></script>
<script src="../../../../Content/cssAdmin/js/plugins/jquery-ui-1.8.16.custom.min.js"></script>
<script src="../../../../Content/cssAdmin/js/plugins/jquery.validate.min.js"></script>
<script src="../../../../Content/cssAdmin/js/plugins/jquery.validate.unobtrusive.min.js"></script>

<div class="maincontentinner">
    <ul class="maintabmenu">
        <li class="current"><a href="@Url.Action("Index", "Video")" >Index</a></li>
        
    </ul>
    <!--maintabmenu-->

    @using (Html.BeginForm("View", "Video",
            new { ReturnUrl = ViewBag.ReturnUrl },
            FormMethod.Post, new { @class = "stdform stdform2", @enctype = "multipart/form-data" }))
    {     
        <p>
            <label>ID</label>
            <span class="field">
                @Html.DisplayFor(model => model.Id)

            </span>
        </p>           
        <p>
            <label>Tên video </label>
            <span class="field">
                @Html.DisplayFor(model => model.Name)
                
            </span>
        </p>
        <p>
            <label> Video </label>
            <span class="field">         
               
                 @{
                     string v = "//www.youtube.com/embed/" + Model.Video.ToString();
                 }
                <iframe width="420" height="315" src="@v" frameborder="0" allowfullscreen></iframe>
            </span>
        </p>
        <p>
            <label>Loại video</label>
            <span class="field">
                @Html.DisplayFor(model => model.IdType)
            </span>
        </p>
        <p>
            <label>Số lượt xem </label>
            <span class="field">
                @Html.DisplayFor(model => model.Views)

            </span>
        </p>
        <p>
            <label>Tiêu chí người dùng</label>
            <span class="field">
                @Html.DisplayFor(model => model.Criteria)
            </span>
        </p>
        <p>
            <label>Tên công ty</label>
            <span class="field">
                @Html.DisplayFor(model => model.IdBusiness)
            </span>
        </p>
         <p>
            <label>Ảnh đại diện</label>
            <span class="field">
                @{
                     var imageFile = "~/Content/Images/Video/";
                     if (@Model.Image != null)
                     {
                         imageFile += @Model.Image;
                     }
                     else
                     {
                         imageFile += "no-photo.jpg";
                     }
                }
                <img src="@Url.Content(@imageFile)" alt="" style="height:100px; width:100px" />
            </span>
        </p>
        <p>
            <label>MetaDesrciption </label>
            <span class="field">
                @Html.DisplayFor(model => model.MetaDesciption)
            </span>
        </p>

        <p>
            <label>MetaKeyWord</label>
            <span class="field">

                @Html.DisplayFor(model => model.MetaKeyWord)
            </span>
        </p>
       <p>
          
       </p>
            
        <p class="stdformbutton">
            <input type="submit" value="Quay lại" onclick="javascript: history.back(); return false" />
        </p> 
    }
</div>
<!--maincontentinner-->

